package cn.mystylefree.io;

import java.io.InputStream;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2022/06/14 19:47
 */
public class Resources {
    /**
     * 根据指定的配置文件路径，将配置文件加载成字节输入流，存储到内参中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
